package com.aiit.service;

import com.aiit.pojo.NameValue;
import com.aiit.pojo.order.SaleOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ISaleOrderService extends IService<SaleOrder> {
    Integer insert(SaleOrder saleOrder);

    List<SaleOrder> querySaleId();

    SaleOrder queryById(int id);

    List<SaleOrder> queryByLCId(Integer lingjianId, Integer customerId);
    List<SaleOrder> queryByLUId(Integer lingjianId, Integer userId);

    List<SaleOrder> queryByLId(Integer lingjianId);
    List<SaleOrder> queryByLId2(Integer lingjianId);

    List<SaleOrder> queryByCId(Integer customerId);
    List<SaleOrder> queryByUId(Integer userId);

    List<SaleOrder> queryAll();
    List<SaleOrder> queryAll1();

    Integer deleteById(Integer id);

    List<NameValue> queryAllSum();
}
